gtk4.git
4 years agodocs: Fix a typo
Matthias Clasen [Sat, 22 May 2021 17:51:24 +0000 (13:51 -0400)]
docs: Fix a typo

4 years agodocs: Avoid stairstepping
Matthias Clasen [Sat, 22 May 2021 17:16:02 +0000 (13:16 -0400)]
docs: Avoid stairstepping

If you don't put empty lines between the items in a
definition list, markdown helpfully stairsteps them.
We don't want that!

4 years agodocs: Update GSK_RENDERER docs
Matthias Clasen [Sat, 22 May 2021 17:09:54 +0000 (13:09 -0400)]
docs: Update GSK_RENDERER docs

This did not mention the opengl and ngl values yet.

4 years agogtk: Clean up docs syntax
Matthias Clasen [Thu, 20 May 2021 13:17:04 +0000 (09:17 -0400)]
gtk: Clean up docs syntax

Replace leftover gtk-doc syntax (#Type) with backquotes.

4 years agogsk: Clean up docs syntax
Matthias Clasen [Thu, 20 May 2021 03:40:54 +0000 (23:40 -0400)]
gsk: Clean up docs syntax

Replace leftover gtk-doc syntax (#Type) with backquotes.

4 years agogdk: Clean up docs syntax
Matthias Clasen [Thu, 20 May 2021 03:39:18 +0000 (23:39 -0400)]
gdk: Clean up docs syntax

Replace leftover gtk-doc syntax (#Type) with backquotes.

4 years agodocs: Clean up docs syntax
Matthias Clasen [Thu, 20 May 2021 03:40:14 +0000 (23:40 -0400)]
docs: Clean up docs syntax

Replace leftover gtk-doc syntax (#Type) with backquotes.

4 years agodemos: Clean up doc comments
Matthias Clasen [Thu, 20 May 2021 13:16:19 +0000 (09:16 -0400)]
demos: Clean up doc comments

These don't show up anywhere, but might still clean
them up.

4 years agoMerge branch 'wip/exalm/check-activate' into 'master'
Matthias Clasen [Fri, 21 May 2021 02:06:58 +0000 (02:06 +0000)]
Merge branch 'wip/exalm/check-activate' into 'master'

checkbutton: Don't allow to uncheck radios by activating them

See merge request GNOME/gtk!3569

4 years agoMerge branch 'doc-tweaks' into 'master'
Matthias Clasen [Fri, 21 May 2021 01:18:58 +0000 (01:18 +0000)]
Merge branch 'doc-tweaks' into 'master'

Fix documentation syntax

See merge request GNOME/gtk!3572

4 years agodocs: Reduce redundancy
Matthias Clasen [Fri, 21 May 2021 00:45:06 +0000 (20:45 -0400)]
docs: Reduce redundancy

Remove a boatload of "or %NULL" from nullable parameters
and return values. gi-docgen generates suitable text from
the annotation that we don't need to duplicate.

This adds a few missing nullable annotations too.

4 years agointrospection: Stop using allow-none
Matthias Clasen [Wed, 19 May 2021 11:24:34 +0000 (07:24 -0400)]
introspection: Stop using allow-none

allow-none has been deprecated for a long time
already. Instead use optional and nullable everywhere.

4 years agoDocumentation fixes
Matthias Clasen [Tue, 18 May 2021 21:05:26 +0000 (17:05 -0400)]
Documentation fixes

Mostly fixing up indentation of continuation lines,
and other small cleanups.

4 years agoFix documentation syntax
Matthias Clasen [Thu, 20 May 2021 23:16:59 +0000 (19:16 -0400)]
Fix documentation syntax

Properties use : in their link syntax.

4 years agoMerge branch 'wip/exalm/switch-icons-2' into 'master'
Matthias Clasen [Thu, 20 May 2021 22:49:29 +0000 (22:49 +0000)]
Merge branch 'wip/exalm/switch-icons-2' into 'master'

icons: Fix switch-off icon

See merge request GNOME/gtk!3571

4 years agoicons: Fix switch-off icon
Alexander Mikhaylenko [Thu, 20 May 2021 18:36:30 +0000 (23:36 +0500)]
icons: Fix switch-off icon

It wasn't converted to paths and so wasn't rendered correctly.

4 years agoMerge branch 'popover-docs' into 'master'
Matthias Clasen [Thu, 20 May 2021 13:55:47 +0000 (13:55 +0000)]
Merge branch 'popover-docs' into 'master'

popover: Update docs

Closes #3960

See merge request GNOME/gtk!3570

4 years agopopover: Update docs
Matthias Clasen [Tue, 18 May 2021 18:50:03 +0000 (14:50 -0400)]
popover: Update docs

Remove mention of show/hide animations, and mention
cascading close instead.

Fixes: #3960
4 years agocheckbutton: Don't allow to uncheck radios by activating them
Alexander Mikhaylenko [Thu, 20 May 2021 09:38:33 +0000 (14:38 +0500)]
checkbutton: Don't allow to uncheck radios by activating them

Do the same check as when clicking.

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Thu, 20 May 2021 07:29:07 +0000 (07:29 +0000)]
Update Ukrainian translation

4 years agoUpdate Ukrainian translation
Yuri Chornoivan [Thu, 20 May 2021 07:27:43 +0000 (07:27 +0000)]
Update Ukrainian translation

4 years agoMerge branch 'bilelmoussaoui/gdk-return-error-annotation' into 'master'
Matthias Clasen [Thu, 20 May 2021 03:54:15 +0000 (03:54 +0000)]
Merge branch 'bilelmoussaoui/gdk-return-error-annotation' into 'master'

gdk: annotate Content Serialize/Deserialize return_error

See merge request GNOME/gtk!3567

4 years agogdk: annotate Content Serialize/Deserialize return_error
Bilal Elmoussaoui [Wed, 19 May 2021 18:10:34 +0000 (18:10 +0000)]
gdk: annotate Content Serialize/Deserialize return_error

4 years agoMerge branch 'fix-gst-media-file' into 'master'
Benjamin Otte [Wed, 19 May 2021 16:22:35 +0000 (16:22 +0000)]
Merge branch 'fix-gst-media-file' into 'master'

gtkgstmediafile: Remove media-info-updated callback

Closes #3913

See merge request GNOME/gtk!3565

4 years agogtkgstmediafile: Remove media-info-updated callback
Ivan Molodetskikh [Wed, 19 May 2021 15:55:37 +0000 (18:55 +0300)]
gtkgstmediafile: Remove media-info-updated callback

Instead, rely on position-updated which is also called always, and also
a little later than media-info-updated, giving GstPlayer time to figure
out more of the video info. Tested on local and remote mount videos,
images, sound files.

Works around / fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3913,
https://gitlab.gnome.org/GNOME/gtk/-/issues/3914.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 18 May 2021 11:42:33 +0000 (11:42 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Actually pass the devel profile to flatpak builds

See merge request GNOME/gtk!3563

4 years agoActually pass the devel profile to flatpak builds
Matthias Clasen [Tue, 18 May 2021 11:37:09 +0000 (07:37 -0400)]
Actually pass the devel profile to flatpak builds

I added that to the manifests, and did not notice that
we do the last build step manually :(

4 years agoMerge branch 'wip/carlosg/sequence-accepted-in-group' into 'master'
Matthias Clasen [Tue, 18 May 2021 10:58:19 +0000 (10:58 +0000)]
Merge branch 'wip/carlosg/sequence-accepted-in-group' into 'master'

gtkgesture: Apply gesture group state after setting up sequence

Closes #3946

See merge request GNOME/gtk!3560

4 years agoMerge branch 'fix-gen-demo-conf' into 'master'
Matthias Clasen [Tue, 18 May 2021 10:31:57 +0000 (10:31 +0000)]
Merge branch 'fix-gen-demo-conf' into 'master'

Fix generating demo_conf.h on builds without GIT in PATH

See merge request GNOME/gtk!3562

4 years agogen-demo-header.py: Fix running without git
Chun-wei Fan [Tue, 18 May 2021 03:02:27 +0000 (11:02 +0800)]
gen-demo-header.py: Fix running without git

The script assumes that the git program is in the PATH which may not be always
the case, so if git was not found, fallback to the former behavior of making
VCS_TAG an empty string if the profile option was not set to 'devel'.

Also fix the call to the script so that we do indeed call GIT on the source GIT
repo so that we can get the right short SHA1 sum.

Re-organize the code a bit in the process, so that things seem cleaner.

4 years agoMerge branch 'wip/carlosg/reset-after-grab' into 'master'
Matthias Clasen [Mon, 17 May 2021 23:35:26 +0000 (23:35 +0000)]
Merge branch 'wip/carlosg/reset-after-grab' into 'master'

Fixes to GTK grab notification

Closes #3942

See merge request GNOME/gtk!3561

4 years agogtkwindow: Fix "shadowed" checks for GTK grabs
Carlos Garnacho [Mon, 17 May 2021 21:57:17 +0000 (23:57 +0200)]
gtkwindow: Fix "shadowed" checks for GTK grabs

We iterate here from the target widget up the toplevel checking
for the previous and new grab, there's however 2 bugs here:
- The check for is_shadowed was different to the check for was_shadowed
- The loop started with the assumption that the widgets did not hold
  a grab, just to change it if the grab widget was found. (or maybe
  it's the other way around? it's unclear with the differing checks
  for past/present state).

Make these checks consistent, and ensure we start with the right
assumption for the past/present grabbing state, and accounting that
new/old grab widgets may or may not be part of the pick stack.

4 years agogtkwindow: Rename function
Carlos Garnacho [Mon, 17 May 2021 21:55:47 +0000 (23:55 +0200)]
gtkwindow: Rename function

With gtk_grab_notify_foreach() just taking care of emitting crossing
notifications due to the GTK grab change, rename it to a more apt
gtk_synthesize_grab_crossing().

4 years agogtkwindow: Simplify GTK grab notification
Carlos Garnacho [Mon, 17 May 2021 21:44:28 +0000 (23:44 +0200)]
gtkwindow: Simplify GTK grab notification

The _gtk_widget_grab_notify() function just (maybe) did a) reset
controllers and b) hide toplevels. The second part was a testing
remnant introduced in commit 024d832d943, not part of the original
fix.

Do the former more concisely, called from the place where we figure
out whether a widget's ability to receive events changed due to
GTK grabs. It's across those changes that we are interested in
resetting the controllers.

With the gestures being reset both ways, GtkWindowHandle (and
probably other) gestures are now able to reset after a GTK grab
takes input away (e.g. GtkMenuButton). This could be seen as
a sudden jump the next time they'd be dragged with the mouse,
as the gesture would "resume" the previous interaction.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3942
4 years agogtkgesture: Apply gesture group state after setting up sequence
Carlos Garnacho [Mon, 17 May 2021 21:34:44 +0000 (23:34 +0200)]
gtkgesture: Apply gesture group state after setting up sequence

When a new sequence is added to a GtkGesture, its state is looked
in other gestures in the same group, and made to match in this
gesture. This however happened a bit too early, before the
gesture touchpoint was fully set up. As this may result in signal
emission and whatnot, it's a good idea to make it happen with a
fully set up touchpoint.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3946
4 years agoMerge branch 'ebassi/rev-parse-fallback' into 'master'
Matthias Clasen [Mon, 17 May 2021 21:13:04 +0000 (21:13 +0000)]
Merge branch 'ebassi/rev-parse-fallback' into 'master'

build: Check CI envvars before rev-parse

See merge request GNOME/gtk!3559

4 years agobuild: Check CI envvars before rev-parse
Emmanuele Bassi [Mon, 17 May 2021 20:12:09 +0000 (21:12 +0100)]
build: Check CI envvars before rev-parse

The CI pipeline does not do a full clone, so we cannot use `git
rev-parse` to get the short SHA checksum for the current commit.

Of course, since nothing's ever easy, we cannot use vcs_tag() with a
custom command, so we need to generate our out `demo_conf.h` header
straight from a script.

4 years agoMerge branch 'wip/exalm/activatable2' into 'master'
Matthias Clasen [Mon, 17 May 2021 20:10:12 +0000 (20:10 +0000)]
Merge branch 'wip/exalm/activatable2' into 'master'

theme: Specificity bump for dropdowns

See merge request GNOME/gtk!3558

4 years agotheme: Specificity bump for dropdowns
Alexander Mikhaylenko [Mon, 17 May 2021 18:25:44 +0000 (23:25 +0500)]
theme: Specificity bump for dropdowns

Fix a fallout from d56711b5d82f8a77793a0857c2252565fda1b492

4 years agoMerge branch 'wip/exalm/activatable' into 'master'
Matthias Clasen [Mon, 17 May 2021 15:56:02 +0000 (15:56 +0000)]
Merge branch 'wip/exalm/activatable' into 'master'

listitemwidget: Have .activatable style class if the item is activatable

See merge request GNOME/gtk!3557

4 years agolistitemwidget: Have .activatable style class if the item is activatable
Alexander Mikhaylenko [Mon, 17 May 2021 13:05:05 +0000 (18:05 +0500)]
listitemwidget: Have .activatable style class if the item is activatable

Match GtkListBox, so it's possible to use the same styles for them.

Update GtkListView and GtkGridView docs to reflect that, fix a few gtk-doc
formatting leftovers along the way.

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 17 May 2021 12:12:22 +0000 (12:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

ngl: Add padding between cached glyphs

See merge request GNOME/gtk!3555

4 years agotestsuite: Run some installed tests exclusively
Matthias Clasen [Mon, 17 May 2021 11:16:42 +0000 (07:16 -0400)]
testsuite: Run some installed tests exclusively

My suspicion is that the clipboard (and some other)
installed test interferes with others, because the
clipboard is a shared resource.

4 years agoMerge branch 'wip/exalm/emojichooser' into 'master'
Matthias Clasen [Mon, 17 May 2021 11:10:33 +0000 (11:10 +0000)]
Merge branch 'wip/exalm/emojichooser' into 'master'

emojichooser: Set selection-mode=none on the toolbar flowbox

See merge request GNOME/gtk!3556

4 years agoemojichooser: Set selection-mode=none on the toolbar flowbox
Alexander Mikhaylenko [Mon, 17 May 2021 09:09:03 +0000 (14:09 +0500)]
emojichooser: Set selection-mode=none on the toolbar flowbox

Selection is never used there, avoid unwanted selected states if clicking
outside the buttons.

4 years agoUpdate Nepali translation
Pawan Chitrakar [Sun, 16 May 2021 07:41:02 +0000 (07:41 +0000)]
Update Nepali translation

(cherry picked from commit 597a624fc55975513517aa5514e5f4b3d838745e)

4 years agongl: Reuse texture coordinates
Matthias Clasen [Sat, 15 May 2021 13:00:50 +0000 (09:00 -0400)]
ngl: Reuse texture coordinates

When uploading glyphs, reuse the position that
we get from gsk_ngl_texture_library_pack, instead
of recomputing it.

4 years agongl: Be consistent about padding
Matthias Clasen [Sat, 15 May 2021 12:58:50 +0000 (08:58 -0400)]
ngl: Be consistent about padding

Make gsk_ngl_texture_library_pack always return
the position including the padding. And compute
texture coordinates accurately in all cases (we
were fudging the padding for standalone textures.

4 years agongl: Add padding between cached glyphs
Matthias Clasen [Fri, 14 May 2021 22:43:52 +0000 (18:43 -0400)]
ngl: Add padding between cached glyphs

Without this, adjacent items in the cache sometimes
bleed into the texture for a glyph.

4 years agoMerge branch 'gst-egl-optional' into 'master'
Matthias Clasen [Sat, 15 May 2021 14:21:09 +0000 (14:21 +0000)]
Merge branch 'gst-egl-optional' into 'master'

meson: Do not enforce GStreamer EGL lib

See merge request GNOME/gtk!3554

4 years agomeson: Do not enforce GStreamer EGL lib
Rafał Dzięgiel [Sat, 15 May 2021 06:52:36 +0000 (08:52 +0200)]
meson: Do not enforce GStreamer EGL lib

GStreamer EGL headers are handled by GstGL lib.
No need to additionally import them.

4 years agoUpdate Norwegian Bokmål translation
Kjartan Maraas [Sat, 15 May 2021 07:35:03 +0000 (07:35 +0000)]
Update Norwegian BokmÃ¥l translation

(cherry picked from commit d952fa48e783cfdd82c7a1a3191f1eb59ed6ad27)

4 years agoMerge branch 'gst-x11-egl' into 'master'
Matthias Clasen [Fri, 14 May 2021 19:57:05 +0000 (19:57 +0000)]
Merge branch 'gst-x11-egl' into 'master'

gtkgstsink: Support EGL under x11

See merge request GNOME/gtk!3553

4 years agogtkgstsink: Support EGL under x11
Rafał Dzięgiel [Fri, 14 May 2021 17:25:23 +0000 (19:25 +0200)]
gtkgstsink: Support EGL under x11

Add support for EGL under x11 windowing system to GStreamer sink

4 years agoMerge branch 'ebassi/issue-3948' into 'master'
Matthias Clasen [Fri, 14 May 2021 10:50:59 +0000 (10:50 +0000)]
Merge branch 'ebassi/issue-3948' into 'master'

x11: Loosen the match for the NVIDIA driver

Closes #3948

See merge request GNOME/gtk!3549

4 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 14 May 2021 00:40:05 +0000 (00:40 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

inspector: Use new get_egl_display apis

See merge request GNOME/gtk!3546

4 years agoMerge branch 'offscreen-fixes' into 'master'
Matthias Clasen [Fri, 14 May 2021 00:38:52 +0000 (00:38 +0000)]
Merge branch 'offscreen-fixes' into 'master'

Add some more transform tests

See merge request GNOME/gtk!3551

4 years agoImprove transformed offscreen rendering
Matthias Clasen [Thu, 13 May 2021 21:32:52 +0000 (17:32 -0400)]
Improve transformed offscreen rendering

Preserve the scale for 2D transforms to
avoid a pixellated appearance.

4 years agoAdd some more transform tests
Matthias Clasen [Thu, 13 May 2021 10:47:46 +0000 (06:47 -0400)]
Add some more transform tests

Test that gsk_transform_to_affine works.

4 years agotestzoom: Fix the in-place rotate
Matthias Clasen [Thu, 13 May 2021 22:58:34 +0000 (18:58 -0400)]
testzoom: Fix the in-place rotate

4 years agoinspector: Use new get_egl_display apis
Matthias Clasen [Wed, 12 May 2021 19:57:33 +0000 (15:57 -0400)]
inspector: Use new get_egl_display apis

This makes the code a bit more concise.

Also, get WGL information when we are using it.

4 years agox11: Pair eglInitialize with eglTerminate
Emmanuele Bassi [Thu, 13 May 2021 17:23:50 +0000 (18:23 +0100)]
x11: Pair eglInitialize with eglTerminate

If we bail out after EGL initialization we want to go back to a stable
state and not leave EGL hanging.

4 years agox11: Loosen the match for the NVIDIA driver
Emmanuele Bassi [Thu, 13 May 2021 17:22:30 +0000 (18:22 +0100)]
x11: Loosen the match for the NVIDIA driver

It seems nVidia puts a different string in the GL_VENDOR than the one it
uses for GLX.

4 years agoMerge branch 'ebassi/boost-url' into 'master'
Emmanuele Bassi [Thu, 13 May 2021 11:47:28 +0000 (11:47 +0000)]
Merge branch 'ebassi/boost-url' into 'master'

Update the URL for the Boost archive

See merge request GNOME/gtk!3548

4 years agoUpdate the URL for the Boost archive
Emmanuele Bassi [Thu, 13 May 2021 10:29:22 +0000 (11:29 +0100)]
Update the URL for the Boost archive

The old URL seems to have failed, and now it returns 301.

Use the URL from the Boost website.

4 years agoMerge branch 'fix-picking-with-transforms' into 'master'
Matthias Clasen [Thu, 13 May 2021 10:09:37 +0000 (10:09 +0000)]
Merge branch 'fix-picking-with-transforms' into 'master'

Fix picking with transforms

See merge request GNOME/gtk!3547

4 years agoAdd a transform test
Matthias Clasen [Thu, 13 May 2021 01:50:32 +0000 (21:50 -0400)]
Add a transform test

This reveals some issues with scale handling.

4 years agoFix picking with transforms
Matthias Clasen [Thu, 13 May 2021 00:53:41 +0000 (20:53 -0400)]
Fix picking with transforms

When transforms include scales, we weren't picking
children properly. The special-case in gtk_widget_do_pick
only applies to 2D translations.

4 years agoMerge branch 'ebassi/issue-3945' into 'master'
Emmanuele Bassi [Wed, 12 May 2021 20:12:13 +0000 (20:12 +0000)]
Merge branch 'ebassi/issue-3945' into 'master'

docs: Fix indentation of the arguments

Closes #3945

See merge request GNOME/gtk!3544

4 years agoMerge branch 'wip/chergert/fix-gi-typo' into 'master'
Matthias Clasen [Wed, 12 May 2021 18:43:33 +0000 (18:43 +0000)]
Merge branch 'wip/chergert/fix-gi-typo' into 'master'

gdk: fix typo in G-I attribute

See merge request GNOME/gtk!3545

4 years agoMerge branch 'win32.egl.getter' into 'master'
Matthias Clasen [Wed, 12 May 2021 18:42:35 +0000 (18:42 +0000)]
Merge branch 'win32.egl.getter' into 'master'

Win32: Add EGLDisplay getter

See merge request GNOME/gtk!3543

4 years agogdk: fix typo in G-I attribute
Christian Hergert [Wed, 12 May 2021 17:53:56 +0000 (10:53 -0700)]
gdk: fix typo in G-I attribute

4 years agodocs: Fix indentation of the arguments
Emmanuele Bassi [Wed, 12 May 2021 16:38:07 +0000 (17:38 +0100)]
docs: Fix indentation of the arguments

The indentation of new lines inside documentation blurbs must be smaller
than 4 spaces, otherwise the Markdown parser will consider the line to
be part of a pre-formatted code block.

Fixes: #3945
4 years agoWin32: Add EGLDisplay getter
Chun-wei Fan [Wed, 12 May 2021 11:29:05 +0000 (19:29 +0800)]
Win32: Add EGLDisplay getter

Like what was done for Wayland and X11, add an API to retrieve the EGLDisplay
if one is being used in place of WGL.

4 years agoMerge branch 'ebassi/egl-display-get' into 'master'
Matthias Clasen [Tue, 11 May 2021 12:42:50 +0000 (12:42 +0000)]
Merge branch 'ebassi/egl-display-get' into 'master'

Add backend-specific getter for the EGLDisplay

See merge request GNOME/gtk!3542

4 years agowayland: Add EGLDisplay getter
Emmanuele Bassi [Tue, 11 May 2021 11:26:55 +0000 (12:26 +0100)]
wayland: Add EGLDisplay getter

Getting an EGLDisplay object is messy; might as well expose the function
we use internally to save some time, just like we did for the X11
backend.

4 years agox11: Add EGLDisplay getter
Emmanuele Bassi [Tue, 11 May 2021 11:25:38 +0000 (12:25 +0100)]
x11: Add EGLDisplay getter

Getting an EGLDisplay object is messy; might as well expose the function
we use internally to save some time.

4 years agobuild: Do not use C arguments with C++
Emmanuele Bassi [Tue, 11 May 2021 11:24:34 +0000 (12:24 +0100)]
build: Do not use C arguments with C++

Otherwise the C++ compiler will start to complain.

The C++ keyword test does not need additional warnings.

4 years agoMerge branch 'misc-inspector-things' into 'master'
Matthias Clasen [Tue, 11 May 2021 10:51:31 +0000 (10:51 +0000)]
Merge branch 'misc-inspector-things' into 'master'

inspector: Show text direction

See merge request GNOME/gtk!3541

4 years agoinspector: Avoid a crash with GL variants
Matthias Clasen [Tue, 11 May 2021 01:25:08 +0000 (21:25 -0400)]
inspector: Avoid a crash with GL variants

When configuring the inspector display, preserve
debug flags that affect which GL variant we pick.
Otherwise, we may end up with a GLX context on the
default display, and an EGL context on the inspector
one. This hopelessly confuses libepoxy, and things
don't go well when that happens.

4 years agoinspector: Show EGL info for X11 as well
Matthias Clasen [Tue, 11 May 2021 01:24:50 +0000 (21:24 -0400)]
inspector: Show EGL info for X11 as well

4 years agoinspector: Show text direction
Matthias Clasen [Tue, 11 May 2021 00:55:43 +0000 (20:55 -0400)]
inspector: Show text direction

This is not a property, so show it on the misc tab.

4 years agoMerge branch 'ebassi/egl-x11' into 'master'
Emmanuele Bassi [Mon, 10 May 2021 22:51:11 +0000 (22:51 +0000)]
Merge branch 'ebassi/egl-x11' into 'master'

Prefer EGL to GLX for the GL support on X11

See merge request GNOME/gtk!3540

4 years agox11: Don't update GLX visuals with EGL
Emmanuele Bassi [Mon, 10 May 2021 20:19:14 +0000 (21:19 +0100)]
x11: Don't update GLX visuals with EGL

We're going to get into a messy situation, with both GLX and EGL
initialized.

If we're already using EGL, skip the whole cache.

4 years agoMerge branch 'broadway-display-scale' into 'master'
Matthias Clasen [Mon, 10 May 2021 20:11:38 +0000 (20:11 +0000)]
Merge branch 'broadway-display-scale' into 'master'

broadway: Add a setter for display scale

Closes #3934

See merge request GNOME/gtk!3538

4 years agox11: Always fall back to GLX on NVIDIA
Emmanuele Bassi [Mon, 10 May 2021 19:37:13 +0000 (20:37 +0100)]
x11: Always fall back to GLX on NVIDIA

At least until we can guarantee that EGL-X11 works fine there.

4 years agox11: Move the damage fences into the GLX code
Emmanuele Bassi [Mon, 10 May 2021 19:33:02 +0000 (20:33 +0100)]
x11: Move the damage fences into the GLX code

It's GLX-specific anyway, there's no need to complicate things by having
half the code in the generic path, and half in the GLX one.

4 years agox11: Add debug toggle for preferring GLX
Emmanuele Bassi [Mon, 10 May 2021 17:36:32 +0000 (18:36 +0100)]
x11: Add debug toggle for preferring GLX

Mostly as a way to compare the EGL and GLX implementations.

4 years agox11: Add profiler marks for SwapBuffers
Emmanuele Bassi [Mon, 10 May 2021 17:22:34 +0000 (18:22 +0100)]
x11: Add profiler marks for SwapBuffers

4 years agox11: Use EGL for GL support
Emmanuele Bassi [Mon, 10 May 2021 17:11:05 +0000 (18:11 +0100)]
x11: Use EGL for GL support

This makes the X11 backend similar to the Wayland one, when it comes to
OpenGL.

Fall back to GLX only if EGL support is not available.

4 years agox11: Decouple GLX from GdkX11GLContext
Emmanuele Bassi [Mon, 10 May 2021 14:07:08 +0000 (15:07 +0100)]
x11: Decouple GLX from GdkX11GLContext

If we want to add an EGL implementation for the X11 backend, we are
going to need to move the GLX bits into their own class. The first step
is to declare GdkX11GLContext as an abstract type, and then subclass it
into a GdkX11GLContextGLX type, which includes the whole GLX
implementation.

4 years agoinspector: Support scale changes on Broadway
Matthias Clasen [Mon, 10 May 2021 14:55:41 +0000 (10:55 -0400)]
inspector: Support scale changes on Broadway

4 years agoMerge branch 'ci-more-clang' into 'master'
Matthias Clasen [Mon, 10 May 2021 13:26:54 +0000 (13:26 +0000)]
Merge branch 'ci-more-clang' into 'master'

ci: Add clang-extra-tools to the image

See merge request GNOME/gtk!3539

4 years agoci: Add clang-extra-tools to the image
Matthias Clasen [Mon, 10 May 2021 12:51:37 +0000 (08:51 -0400)]
ci: Add clang-extra-tools to the image

Hurray for bite-size packages! Splitting
this off broke our style check in ci.

4 years agobroadway: Add a setter for display scale
Matthias Clasen [Sun, 9 May 2021 23:42:42 +0000 (19:42 -0400)]
broadway: Add a setter for display scale

This is useful when using Broadway as a headless
display server.

Fixes: #3934
4 years agoCosmetics
Matthias Clasen [Sun, 9 May 2021 23:32:36 +0000 (19:32 -0400)]
Cosmetics

4 years agoMerge branch 'file-replace-trap' into 'master'
Matthias Clasen [Sun, 9 May 2021 23:06:49 +0000 (23:06 +0000)]
Merge branch 'file-replace-trap' into 'master'

print-editor: Fix saving

See merge request GNOME/gtk!3536

4 years agoMerge branch 'wip/exalm/image-button' into 'master'
Matthias Clasen [Sun, 9 May 2021 23:06:25 +0000 (23:06 +0000)]
Merge branch 'wip/exalm/image-button' into 'master'

Ensure consistent header bar buttons in the demo and tests

See merge request GNOME/gtk!3537

4 years agotest: Ensure .image-button on header bar buttons
Alexander Mikhaylenko [Sun, 9 May 2021 15:53:40 +0000 (20:53 +0500)]
test: Ensure .image-button on header bar buttons

4 years agodemo: Ensure .image-button on header bar buttons
Alexander Mikhaylenko [Sun, 9 May 2021 15:53:05 +0000 (20:53 +0500)]
demo: Ensure .image-button on header bar buttons